#!/usr/bin/python3
import sys
import main_ui
import serial
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QShortcut
from PyQt5.QtGui import QKeySequence
from PyQt5.QtCore import pyqtSignal, QObject



APP = QtWidgets.QApplication(sys.argv)
MAINWINDOW = QtWidgets.QMainWindow()
UI = main_ui.Ui_MainWindow()
UI.setupUi(MAINWINDOW)

def hello(*arg):
    print('hello')


def bind_methods():
    UI.hello_button.clicked.connect(hello)


def main():
    bind_methods()
    MAINWINDOW.show()
    sys.exit(APP.exec_())


if __name__ == "__main__":
    print("start GUI")
    main()
